package org.jeecg.modules.hc.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.hc.entity.HcMerchantSettlement;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.hc.enums.HcSyncMerchantSettlementTypeEnum;

import java.text.ParseException;
import java.util.List;

/**
 * @Description: 商户结算
 * @Author: jeecg-boot
 * @Date:   2023-02-17
 * @Version: V1.0
 */
public interface IHcMerchantSettlementService extends IService<HcMerchantSettlement> {

    /**
     * 根据商户id同步结算数据
     * @param merchantId
     * @throws ParseException
     */
    List syncMerchantSettlement(String merchantId, HcSyncMerchantSettlementTypeEnum typeEnum) throws ParseException;

    IPage<HcMerchantSettlement> pageList(Page<HcMerchantSettlement> page, HcMerchantSettlement param);
}
